import { bannerList } from '../../../request/api'
const state = {
    bannerlist: []
}
const getters = {
    getBanner(state) {
        return state.bannerlist
    }
}
const mutations = {
    REQ_LIST(state,payload){
       state.bannerlist=payload
    }
}
const actions = {
    getBannerActions({ commit }) {
        bannerList().then(res => {
            console.log(res, "管理员列表");
            if (res.code == 200) {
                commit('REQ_LIST', res.list)
            }
        })
    }
}
export default {
    state,
    getters,
    mutations,
    actions,
    namespaced: true
}